package me.exchange.com.modules.system.repository;

import me.exchange.com.modules.system.domain.Dict;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
* @author 张玉丰
* @date 2020-04-11
*/
public interface DictRepository extends JpaRepository<Dict, Long>, JpaSpecificationExecutor<Dict> {

    @Query(value = "select * from t_dict where filed_key =?1 and  data_key = ?2 and isdel = '1'",nativeQuery = true)
    Dict findByDataKey(String filedKey,String dataKey);
}